<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
<form id="pagerForm" method="post" action="${url }">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="${ps}" />
</form>

<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="method!userlist" method="post">
	<div class="searchBar">
		<table class="searchContent">
	
			<tr>
				
				
				<td>
					姓名：<input type="text"  name="truename" value="${truename}"/>
				</td>
				
				<td>
				<label>    审核状态：</label>
 <select name="status">
  <option value="">选择</option>
   <option value="1">审核</option>
<option value="0">未审核</option>
 
  </select>
				</td>
				
				<td>
				<c:if test="${user.role==0}"> 
	<input type="hidden" name="id" value="${id}"/>
			</c:if>	
					<div class="subBar">
					<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
					</ul>
					</div>
				</td>
				
					<td>
					
				</td>
			</tr>
			
		</table>
		
	</div>
	</form>
	
	<form action="method!userlistdownload" method="post">
				<div class="buttonActive"><div class="buttonContent"><button type="submit">导出考试信息列表</button></div></div>
			</form>	
		
			
</div>

	<script type="text/javascript">
function shenhe1()
{
	if(IsCheckReturnCount()>=1)
	{
		if(MessgerBox('确认要审核通过吗？'))
		{
			form1.action="method!shenhe1";
			form1.submit();
		}
	}else{
		alert("请选择要审核的项！");
        return false;
	}
}

function shenhe2()
{
	if(IsCheckReturnCount()>=1)
	{
		if(MessgerBox('确认要审核不通过吗？'))
		{
			form1.action="method!shenhe2";
			form1.submit();
		}
	}else{
		alert("请选择要审核的项！");
        return false;
	}
}
</script>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
	
		<!--  
		<li><a class="add" href="method!useradd" target="dialog" mask="true"><span>添加考生</span></a></li>
-->	
			<li><a class="edit" href="method!userupdate?id={sid_user}" target="dialog" mask="true"><span>修改考生信息</span></a></li>
				<li><a class="delete" href="method!userdelete?id={sid_user}" target="ajaxTodo" title="确定要删除吗?" ><span>删除考生</span></a></li>
	<c:if test="${user.role==1}"> 
	 <li><a class="edit" href="method!userupdate9?id={sid_user}" target="dialog" mask="true"><span>审核考生信息</span></a></li>
	 
	 
	 <li><a  class="edit" href="####" onclick="shenhe1()" ><span>批量审核通过</span></a></li>
	  <li><a  class="edit" href="####" onclick="shenhe2()" ><span>批量审核不通过</span></a></li>

	 </c:if>
			
			
			
			
			
			
	
		</ul>
	</div>
	<form name="form1" method="post"  class="pageForm" onsubmit="return validateCallback(this,navTabAjaxDone);">
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>

				<th width="100">选择</th>
		
				<th width="100">姓名</th>
		
				<th width="100">联系电话</th>

				<th width="100">联系地址</th>
	
				<th width="100">身份证号</th>
               <th width="100">审核状态</th>
			</tr>
		</thead>
		<tbody>

			<c:forEach items="${list}" var="bean"  >
			<tr target="sid_user" rel="${bean.id}">
			
			<td align="center">
					<input id="chk_row" name="ids" type="checkbox"
							onclick="uncheckAll()" value="${bean.id}" />
				</td>
			
				<td>
				${bean.truename}
				</td>
				
				<td>
				${bean.mobile}
				</td>
				<td>
				${bean.address}
				</td>
				
				
				<td>
				${bean.sfz}
				</td>
				<td>
					<c:if test="${bean.status==0}">未审核</c:if>
					<c:if test="${bean.status==1}">通过</c:if>
					<c:if test="${bean.status==-1}">不通过</c:if>
			  </td>
			
				
			</tr>			
			</c:forEach>
			<td colspan="7">
				<input id="chk_selall" type="checkbox" onclick="CheckAll()" />
				全选
			</td>
		</tbody>
	</table>
	</form>
	<div class="panelBar">
		<div class="pages">
			
			<span>共${totalCount}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="${totalCount}" numPerPage="${ps}" pageNumShown="10" currentPage="${pn}"></div>

	</div>
</div>

  </body>
</html>
